package com.sky.loveshop.api;

import feign.Headers;
import feign.Param;
import feign.RequestLine;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author xcy
 * @version V1.0
 * @description 企业微信Api
 * @date 2025/01/12 18:40
 */
public interface QiYeWeChatApi {

    /**
     * webhookSend 企业微信发送消息
     *
     * @param request
     * @return
     */
    @RequestLine("POST /webhook/send?key={key}")
    @Headers({"Content-Type: application/json"})
    QiYeWeChatRequest.MessageResponse webhookSend(@Param("key") String key, @RequestBody QiYeWeChatRequest.MessageRequest request);

}
